import Vue from 'vue';
import router from './router/index.js';
import App from './App.vue';
import echarts from 'echarts';
import BaiduMap from 'vue-baidu-map';
import 'echarts/extension/bmap/bmap';
import xml2js from 'xml2js';
require('./mock/index.js');

import axios from 'axios';
// import echartsBmap from 'echarts-bmap/dist/echarts-bmap';
// require('echarts-bmap/dist/echarts-bmap');
import dataTool  from 'echarts/extension/dataTool';
Vue.prototype.$echarts = echarts;
Vue.prototype.$dataTool = dataTool;
Vue.prototype.$axios = axios;
Vue.prototype.$xml2js = xml2js;
// Vue.use(echartsBmap);
Vue.use(BaiduMap, {
  ak: '70G8P5GLSYe2yGtnTt9G1n6y39EDVGrT'
});
// runtime
new Vue({
  router,
  // store,
  render: h => h(App)
}).$mount("#app");
// new Vue({
//   el: '#app',
//   Router,
//   components: { App },
//   template: '<App/>'
// });

